package me.helllp.dake.support;

import me.helllp.dake.common.security.CryptoUtil;

public class CryptoSupport {
    /**
     * 生产配置项：dake.crypto.config.keyPart
     *
     * @param keyLength
     * @return
     */
    public static String makeKeyPair(int keyLength) {
        return CryptoUtil.encode(CryptoUtil.genKey(keyLength / 2 ));
    }

    public static void main(String[] args) {
        System.out.println(makeKeyPair(128));
        System.out.println(makeKeyPair(192));
        System.out.println(makeKeyPair(256));
    }
}
